Interview Questions and Answer
Options:
a. Child class destructor is executed first and then parent class destructor is executed.
b. Child class destructor is visited first but parent class destructor is executed first.
c. Parent class destructor is executed first and then child class destructor is executed.
d. None of the above
Reveal Answer
Options:
a. Generalization
b. Extensibillity
c. Reusability
d. All the above
Reveal Answer
Options:
a. Non-derived, and Derived
b. Only in Derived
c. Non-derived.
d. None of the above.
Reveal Answer
Options:
a. Child Class constructor first and then parent class
b. Parent class constructor first and then child class
c. Both will execute together.
d. Depending on the class intiantiaited.
Reveal Answer
Options:
a. Runtime Error
b. No Error
c. Compiler Error
Reveal Answer
Options:
a. Abstract class can have constructor and destructor
b. Abstract class can be instantiated
c. Abstract class can have non abstract methods
d. Abstract class must have at least one abstract methods
Reveal Answer
Options:
a. override
b. new
c. either override or new
d. overrides
e. either override or new
Reveal Answer
Options:
a. bool Equals(object obj)
b. System.Type GetType()
c. int GetHashCode()
d. string ToString()
Reveal Answer
Options:
a. Foo is invoked
b. Runtime Error
c. Compilation Error
d. ob cannot refer to object of class CA
Reveal Answer
Bestitcourse google plus

Thank you for visiting BestITCourses, How can I help you

Thank you for visiting BestITCourses, How can I help you